package Structure;

import java.util.LinkedList;

/**
 * container to hold the translation to a word into a specific language
 * @author Tony
 *
 */
public class Translation {

	public String language;
	
	public LinkedList<MeaningWordPair> meaningWordMap;
	
	public Translation(String language, LinkedList<MeaningWordPair> meaningWordMap){
		this.language=language;
		this.meaningWordMap=meaningWordMap;
	}
	
	@Override
	public String toString(){
		String txt="\t"+language;
		for(int i=0;i<meaningWordMap.size();i++){
			txt+="\n\t"+meaningWordMap.get(i).meaning +"\t"+meaningWordMap.get(i).word;
		}
		return txt;
	}

	
	public static void main(String[] args) {
		Translation t = new Translation("de", new LinkedList<MeaningWordPair>());
		System.out.println(t.language);
	}
	

	
}

